<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/static/js/echarts.js"></script>
</head>
<body>
<div id="main" style="height: 600px;"></div>
</body>
<script>
    var chartDom = document.getElementById('main');
    var myChart = echarts.init(chartDom);
    var option;

    option = {
      xAxis: {
        type: 'category',
        data: {{ index_list }}
      },
      yAxis: {
        type: 'value'
      },
      series: [
        {
          data: {{ series_data }},
          type: 'bar'
        }
      ]
    };

    option && myChart.setOption(option);
</script>
</html>